package com.ytc.basic.api;


import com.ytc.commons.model.vo.CategoryVo;
import com.ytc.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("xc-basic-service")
public interface BasicClient {

    /*
     * 根据id查询分类数据
     * @GET /{id}
     * 返回：CategoryVo
     * */
    @GetMapping("/category/{id}")
    ResponseResult<CategoryVo> findById(@PathVariable("id")String id);
}
